<?php
namespace app\index\validate;
use think\Validate;
// 自动加载验证
class Advert extends Validate
{


 protected $rule=[
        'content'=>'unique:advert|require|max:120 ',

    ];


    protected $message=[
        'content.require'=>'广告内容不得为空！',
        'content.unique'=>'广告内容不得重复！',
        'content.max'=>'广告内容长度不得大于30个字符！',

    ];

    protected $scene=[
        'add'=>['content'],
        'edit'=>['content'],
    ];



    

    




   

	












}
